package org.swust.sysmonitorapp.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import org.swust.sysmonitorapp.entity.AlertThreshold;
import org.swust.sysmonitorapp.mapper.AlertThresholdMapper;
import org.swust.sysmonitorapp.service.IAlertThresholdService;

@Service
public class AlertThresholdServiceImpl extends ServiceImpl<AlertThresholdMapper, AlertThreshold>
        implements IAlertThresholdService {

    @Override
    public boolean updateThreshold(AlertThreshold threshold) {
        return baseMapper.updateThreshold(threshold) > 0;
    }
}